#!/bin/bash

rm -f ./data/*

size=100000

for size in 100 1000 5000 10000 100000
do
	for threads in 1 2 4 8 12 16 20 24
	do
		./bin/pi_omp $size $threads >> ./data/res_$size.txt
		./bin/pi_omp_noopt $size $threads >> ./data/res_noopt_$size.txt
	done
done

gnuplot plot.gnuplot

